<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
  <head><title><s:if test="edit"><s:text name="user.edit" /></s:if>
          <s:else><s:text name="user.create" /></s:else></title></head>
  <body>
      <h1><s:if test="edit"><s:text name="user.edit" /></s:if>
          <s:else><s:text name="user.create" /></s:else>
      </h1>

      <p><a href="/user/user!show.action"><s:text name="user.show.title" /></a></p>

      <s:form action="/user/user!save.action">
          <s:if test="edit">
              <s:hidden name="user.id" />
              <s:hidden name="user.version" />
              <s:hidden name="edit" />
          </s:if>
          <s:textfield name="user.firstName" key="user.firstName" />
          <s:textfield name="user.lastName" key="user.lastName" />
          <s:textfield name="user.email" key="user.email" />
          <s:submit /><s:reset />
      </s:form>

  </body>
</html>